{extend name="admin/public/base"/}
{block name="body"}
<div class="box box-primary">
	<div class="box-header with-border">
		<h3 class="box-title">{$meta_title}</h3>
		<div class="box-tools pull-right">
			<a class="btn btn-warning btn-out btn-sm" href="{:url('/admin/form/outxls', ['form_id' => $form_id])}" data-name="{$meta_title}"><i class="fa fa-reply"></i> 导出</a>
		</div>
	</div>
	<div class="box-body">
		
		<table class="table table-hover">
			<thead>
				<tr>
					<th width="30"><input class="checkbox check-all" type="checkbox"></th>
					{volist name="grid" id="item"}
					<th>{$item['title']}</th>
					{/volist}
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{if condition="empty($list)"}
				{php}
				$cow = count($grid)+2;
				{/php}
				<tr>
					<td colspan="{$cow}" align="center">暂无数据！</td>
				</tr>
				{else/}
				{volist name="list" id="item"}
				<tr>
					<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
					{volist name="grid" id="vo"}
					{if isset($vo['format'])}
					<td>{$item[$vo['field']]|$vo['format']}</td>
					{else/}
					<td>{$item[$vo['field']]|default=''}</td>
					{/if}
					{/volist}
					<td>
						<a href="{:url('/admin/form/editdata', ['form_id' => $form_id,'id'=>$item['id']])}" >回复</a>
						<a href="{:url('/admin/form/deldata', ['form_id' => $form_id,'id'=>$item['id']])}" class="ajax-get confirm">删除</a>
					</td>
				</tr>
				{/volist}
				{/if}
			</tbody>
		</table>
		{$page|raw}
	</div>
</div>
{/block}